package com.haoshuang.zhouzhoubang.ui.page.welfare

import com.haoshuang.zhouzhoubang.databinding.ItemPlatformWelfareBinding
import com.haoshuang.zhouzhoubang.model.bean.PlatformWelfareBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 *
 */
class PlatformWelfareAdapter(data: MutableList<PlatformWelfareBean>) :
    BaseBindingQuickAdapter<PlatformWelfareBean, ItemPlatformWelfareBinding>(data) {

    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: PlatformWelfareBean?
    ) {
        holder.getViewBinding<ItemPlatformWelfareBinding>().apply {
            tvName.text = "剩余${item?.welfare_name}"
            tvNum.text = item?.surplus_number
        }
    }

}